const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://47.121.28.202:8000',  // Django服务器的地址
        changeOrigin: true,
        pathRewrite: {
          '^/api': '',  // 设置为空即可
        },
      },
    },
    // host: '47.121.28.202',
    // port:3000,
    // client: {
    //   webSocketURL: 'wss://47.121.28.202:8000/wss/buyinginformation/',
    // },
    // headers: {
    //   'Access-Control-Allow-Origin': '*',
    // }
  },
})
